
<!-- 头部 -->
<header>
    <!-- logo -->
    <div class="am-fl tpl-header-logo">
        <h3> 商城后台管理系统</h3>
    </div>
    <!-- 右侧内容 -->
    <div class="tpl-header-fluid">
        <!-- 侧边切换 -->
        <div class="am-fl tpl-header-switch-button am-icon-list">
                    <span>

                </span>
        </div>
        <!-- 搜索 -->
        <div class="am-fl tpl-header-search">
            <!--<form class="tpl-header-search-form" action="javascript:;">-->
                <!--<button class="tpl-header-search-btn am-icon-search"></button>-->
                <!--<input class="tpl-header-search-box" type="text" placeholder="搜索内容...">-->
            <!--</form>-->
        </div>
        <!-- 其它功能-->
        <div class="am-fr tpl-header-navbar">
            <ul>
                <!-- 欢迎语 -->
                <li class="am-text-sm tpl-header-navbar-welcome">
                    <a href="javascript:;">欢迎你, <span>{$Think.session.Admin.user_name}</span> </a>
                </li>

                <!-- 新邮件 -->
                <li class="am-dropdown tpl-dropdown" data-am-dropdown>
                    <a href="javascript:;" class="am-dropdown-toggle tpl-dropdown-toggle" data-am-dropdown-toggle>
                        <i class="am-icon-envelope"></i>
                        <span class="am-badge am-badge-success am-round item-feed-badge">{:count($commentreply)}</span>
                    </a>
                    <!-- 弹出列表 -->
                    <ul class="am-dropdown-content tpl-dropdown-content">
                        {foreach name="$commentreply" key="k" item="v"}
                        {if $k>=3}<?php break; ?>{/if}

                        <li class="tpl-dropdown-menu-messages">
                            <a href="{:url('comment/commentdetail')}?comment_id={$v.comment_id}" class="tpl-dropdown-menu-messages-item am-cf">
                                <div class="menu-messages-ico">
                                    <img src="/assets/img/user04.png" alt="">
                                </div>
                                <div class="menu-messages-time">
                                    <!--3小时前-->
                                </div>
                                <div class="menu-messages-content">
                                    <div class="menu-messages-content-title">
                                        <i class="am-icon-circle-o am-text-success"></i>
                                        <span>{$v.username}</span>
                                    </div>
                                    <div class="am-text-truncate"> {$v.content}</div>
                                    <div class="menu-messages-content-time">{:date('Y-m-d H:i:s',$v.add_time)}</div>
                                </div>
                            </a>
                        </li>
                        {/foreach}
                        <li class="tpl-dropdown-menu-messages">
                            <a href="{:url('comment/commentindex')}" class="tpl-dropdown-menu-messages-item am-cf">
                                <i class="am-icon-circle-o"></i> 进入列表…
                            </a>
                        </li>
                    </ul>
                </li>

                <!-- 新提示 -->
                <li class="am-dropdown" data-am-dropdown>
                    <a href="javascript:;" class="am-dropdown-toggle" data-am-dropdown-toggle>
                        <i class="am-icon-bell"></i>
                        <span class="am-badge am-badge-warning am-round item-feed-badge">{:count($orderindex)+count($return_goods2)}</span>
                    </a>

                    <!-- 弹出列表 -->
                    <ul class="am-dropdown-content tpl-dropdown-content">
                        {notempty name="$orderindex.0"}
                        <li class="tpl-dropdown-menu-notifications">
                            <a href="{:url('order/index')}" class="tpl-dropdown-menu-notifications-item am-cf">
                                <div class="tpl-dropdown-menu-notifications-title">
                                    <i class="am-icon-line-chart"></i>
                                    <span>未处理的订单{:count($orderindex)}条</span>
                                </div>
                                <div class="tpl-dropdown-menu-notifications-time">
                                    {$orderindex.0.add_time|date='Y-m-d H:i:s',###}
                                </div>
                            </a>
                        </li>
                        {/notempty}
                        {notempty name="$return_goods2.0"}

                        <li class="tpl-dropdown-menu-notifications">
                            <a href="{:url('order/index')}" class="tpl-dropdown-menu-notifications-item am-cf">
                                <div class="tpl-dropdown-menu-notifications-title">
                                    <i class="am-icon-star"></i>
                                    <span>未处理退货换货申请{:count($return_goods2)}条</span>
                                </div>
                                <div class="tpl-dropdown-menu-notifications-time">
                                    {$return_goods2.0.addtime|date='Y-m-d H:i:s',###}
                                </div>
                            </a>
                        </li>
                        {/notempty}
                        <!--<li class="tpl-dropdown-menu-notifications">-->
                            <!--<a href="{:url('order/index')}" class="tpl-dropdown-menu-notifications-item am-cf">-->
                                <!--<i class="am-icon-bell"></i> 进入列表…-->
                            <!--</a>-->
                        <!--</li>-->
                    </ul>
                </li>

                <!-- 退出 -->
                <li class="am-text-sm">
                    <a href="{:url('Login/outlogin')}">
                        <span class="am-icon-sign-out"></span> 退出
                    </a>
                </li>
            </ul>
        </div>
    </div>

</header>
<!-- 风格切换 -->
<!--<div class="tpl-skiner">-->
    <!--<div class="tpl-skiner-toggle am-icon-cog">-->
    <!--</div>-->
    <!--<div class="tpl-skiner-content">-->
        <!--<div class="tpl-skiner-content-title">-->
            <!--选择主题-->
        <!--</div>-->
        <!--<div class="tpl-skiner-content-bar">-->
            <!--<span class="skiner-color skiner-white" data-color="theme-white"></span>-->
            <!--<span class="skiner-color skiner-black" data-color="theme-black"></span>-->
        <!--</div>-->
    <!--</div>-->
<!--</div>-->